import matplotlib.pyplot as plt
import random

"""
语法格式:
    plt.scatter(x,y)
参数说明:
    x: 数据
    y: 数据
"""
x = [i for i in range(10)]
y = [random.randint(1, 10) for i in range(10)]

plt.scatter(x, y)
plt.show()
